package ar.com.temporis.scrum.persistence;

import java.util.Set;

import ar.com.temporis.framework.domain.Entity;
import ar.com.temporis.framework.persistence.PersistenceTestCase;
import ar.com.temporis.scrum.model.BacklogItem;
import ar.com.temporis.scrum.model.ProductBacklog;
import ar.com.temporis.system.domain.User;


public class ProductBacklogPersistenceTestCase extends PersistenceTestCase {

	@Override
	protected Entity createEntity() {
		ProductBacklog productBacklog = new ProductBacklog();
		
		productBacklog.setDescription("description");
		productBacklog.setName("name");
		productBacklog.setProductOwner(getProductOwner());
		productBacklog.setBacklogItems(getFunctionalityDesired());
		
		return productBacklog;
	}

	private Set<BacklogItem> getFunctionalityDesired() {
		return null;
	}

	private User getProductOwner() {
		return this.getAny(User.class);
	}

	@Override
	protected void modify(Entity entity) {
		ProductBacklog productBacklog = (ProductBacklog) entity;
		
		productBacklog.setDescription("asdasd");
	}

}
